//
//  ShopModel.swift
//  Eternity
//
//  Created by cll12_12 on 2017/1/11.
//  Copyright © 2017年 ZhengWei. All rights reserved.
//

import UIKit

// MARK: - 总model
class ShopModel: NSObject {
    
    var picUrl: String?
    var id: NSNumber?
    // 轮播图
    var focusBannerList: [FocusBannerModel]?
    // 四大分类以及广告
    var productCategorylist: [CategoryListModel]?
    // 新品首发
    var newList: [ListOfGoodsModel]?
    // 猜你喜欢
    var recommendList: [ListOfGoodsModel]?
    // 热卖商品
    var bestSellerList: [ListOfGoodsModel]?
    // 广告下商品列表
    var advDetailList: [ListOfGoodsModel]?
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
    override func value(forUndefinedKey key: String) -> Any? {
        return nil
    }
}

// 轮播图Model
class FocusBannerModel: NSObject {
    var picUrl: String?
    var link: String?
    var title: String?
    var id: NSNumber?
    var type: NSNumber?
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
    override func value(forUndefinedKey key: String) -> Any? {
        return nil
    }
}

// 四大分类以及广告图Model
class CategoryListModel: NSObject {
    var categorys: String?
    var categoryName: String?
    var imageURL: String?
    var id: NSNumber?
    var createTime: NSNumber?
    var cover: String?
    var categoryId: NSNumber?

    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
    override func value(forUndefinedKey key: String) -> Any? {
        return nil
    }
}

// MARK: - 商品列表model
class ListOfGoodsModel: NSObject {
    var title: String?
    var brandName: String?
    var rmbPrice: NSNumber?
    var id: NSNumber?
    var mainPicUrl: String?
    var categoryId: NSNumber?
    var marketPrice: NSNumber?
    
    override init() {
        super.init()
    }
    
    init(title: String, brandName: String) {
        self.title = title
        self.brandName = brandName
    }
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
    override func value(forUndefinedKey key: String) -> Any? {
        return nil
    }
}

